<?php

use think\facade\Route;

// web登录接口无需token模块
Route::group('web', function () {
    // 首页路由
    Route::group('user', function () {
        Route::any('login', 'web.User/login');//登录接口
    });
})->allowCrossDomain();


Route::group('web', function () {
    // 首页路由
    Route::group('index', function () {
        Route::any('index', 'web.Index/index');
    });
     Route::group('user', function () {
        Route::any('index', 'web.User/index');//测试中间件
    });
})->allowCrossDomain()->middleware('PcAuth');